<?php

namespace app\common\model\transaction;

use think\Model;

class Sft extends Model
{

    // 表名
    protected $name = 'transaction_data_sft';
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;
    // 定义时间戳字段名
    protected $createTime = "create_time";
    protected $updateTime = false;
    // 追加属性
    protected $append = [
    ];

    public function terminal()
    {
        return $this->belongsTo('Terminal', 'sn', 'sn', [], 'LEFT')->setEagerlyType(0);
    }

}
